package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 紫煦桉
 */
public class BooksScrap extends AbstractToString {
    private Integer scrapNo;
    private BooksMessage booksMessage;
    private String scrapRemark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date scrapDate;

    public BooksScrap() {
    }

    public BooksScrap(Integer scrapNo) {
        this.scrapNo = scrapNo;
    }

    public BooksScrap(Integer scrapNo, String scrapRemark, Date scrapDate) {
        this.scrapNo = scrapNo;
        this.scrapRemark = scrapRemark;
        this.scrapDate = scrapDate;
    }

    public BooksScrap(Integer scrapNo, BooksMessage booksMessage, String scrapRemark, Date scrapDate) {
        this.scrapNo = scrapNo;
        this.booksMessage = booksMessage;
        this.scrapRemark = scrapRemark;
        this.scrapDate = scrapDate;
    }

    public Integer getScrapNo() {
        return scrapNo;
    }

    public void setScrapNo(Integer scrapNo) {
        this.scrapNo = scrapNo;
    }

    public BooksMessage getBooksMessage() {
        return booksMessage;
    }

    public void setBooksMessage(BooksMessage booksMessage) {
        this.booksMessage = booksMessage;
    }

    public String getScrapRemark() {
        return scrapRemark;
    }

    public void setScrapRemark(String scrapRemark) {
        this.scrapRemark = scrapRemark;
    }

    public Date getScrapDate() {
        return scrapDate;
    }

    public void setScrapDate(Date scrapDate) {
        this.scrapDate = scrapDate;
    }
}
